/*
 * AboutForm.java
 *
 * Created on Jan 10, 2012, 9:36:55 PM
 */
package kernel_gui.gui.generic.graphic;

import java.awt.AWTError;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Toolkit;

import kernel_gui.gui.generic.BackGroundPanel;
import kernel_gui.gui.generic.MillionaireFrame;


/**
 *
 * @author Yoyo
 */
@SuppressWarnings("serial")
public abstract class MyProfile extends MillionaireFrame {

    /** Creates new form AboutForm */
    public MyProfile() {
    	super(true);
        initComponents();
    }

    private void initComponents() {

        personalRecordPanel1 = new javax.swing.JPanel();
        personalRecordLabel = new javax.swing.JLabel();
        BGPanel = new javax.swing.JPanel();
        LeftGobletIcon = new javax.swing.JLabel();
        HeaderLabel = new javax.swing.JLabel();
        BackButton = new javax.swing.JButton();
        userNameHeaderLabel1 = new javax.swing.JLabel();
        gamesPlayedLabelHeader = new javax.swing.JLabel();
        gamesPlayedLabel = new javax.swing.JLabel();
        userNameLabel = new javax.swing.JLabel();
        personalRecordLabelHeader = new javax.swing.JLabel();
        personalRecordLabel = new javax.swing.JLabel();
        moneyWonLabelHeader = new javax.swing.JLabel();
        moneyWonLabel = new javax.swing.JLabel();

        /* My init code */
    	int frameWidth = 562;
    	int frameHeight = 487;
    	this.setBounds(new Rectangle(new Dimension(frameWidth, frameHeight)));
    	this.setIconImage(new javax.swing.ImageIcon("images/Green-Dollar-icon.png").getImage());
    	LeftGobletIcon.setIcon(new javax.swing.ImageIcon("images/myProfile.gif"));
       	this.setTitle("My Profile");
    	setResizable(false);
    	try{
    		Toolkit tk = Toolkit.getDefaultToolkit();
    		int framePosWidth = tk.getScreenSize().width / 2 - frameWidth / 2;
    		int framePosHeight = tk.getScreenSize().height / 2 - frameHeight / 2;
    		Point p = new Point(framePosWidth, framePosHeight);
    		this.setLocation(p);
    	}catch(AWTError e){
    		/*Nothing to do*/
    	}
    	BGPanel = new BackGroundPanel(frameWidth, frameHeight);
    	/* end */
    	
        personalRecordLabel.setFont(new java.awt.Font("Tahoma", 1, 14));
        personalRecordLabel.setText("1234567890");

        javax.swing.GroupLayout personalRecordPanel1Layout = new javax.swing.GroupLayout(personalRecordPanel1);
        personalRecordPanel1.setLayout(personalRecordPanel1Layout);
        personalRecordPanel1Layout.setHorizontalGroup(
            personalRecordPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
            .addGroup(personalRecordPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(personalRecordPanel1Layout.createSequentialGroup()
                    .addGap(5, 5, 5)
                    .addComponent(personalRecordLabel)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        personalRecordPanel1Layout.setVerticalGroup(
            personalRecordPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
            .addGroup(personalRecordPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(personalRecordPanel1Layout.createSequentialGroup()
                    .addGap(41, 41, 41)
                    .addComponent(personalRecordLabel)
                    .addContainerGap(42, Short.MAX_VALUE)))
        );



        HeaderLabel.setFont(new java.awt.Font("Tahoma", 1, 27)); // NOI18N
        HeaderLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        HeaderLabel.setText("My Profile");

        BackButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        BackButton.setText("Back");
        BackButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BackButtonActionPerformed(evt);
            }
        });

        userNameHeaderLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        userNameHeaderLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        userNameHeaderLabel1.setText("User Name");

        gamesPlayedLabelHeader.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        gamesPlayedLabelHeader.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        gamesPlayedLabelHeader.setText("# of Games Played");

        gamesPlayedLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        gamesPlayedLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        gamesPlayedLabel.setText("1234567890");

        userNameLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        userNameLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        userNameLabel.setText("1234567890123456789012345678901234567890");

        personalRecordLabelHeader.setFont(new java.awt.Font("Tahoma", 1, 14));
        personalRecordLabelHeader.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        personalRecordLabelHeader.setText("Highest $ Won");

        personalRecordLabel.setFont(new java.awt.Font("Tahoma", 1, 14));
        personalRecordLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        personalRecordLabel.setText("1234567890");

        moneyWonLabelHeader.setFont(new java.awt.Font("Tahoma", 1, 14));
        moneyWonLabelHeader.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        moneyWonLabelHeader.setText("Total $ Won");

        moneyWonLabel.setFont(new java.awt.Font("Tahoma", 1, 14));
        moneyWonLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        moneyWonLabel.setText("1234567890");

        javax.swing.GroupLayout BGPanelLayout = new javax.swing.GroupLayout(BGPanel);
        BGPanel.setLayout(BGPanelLayout);
        BGPanelLayout.setHorizontalGroup(
            BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(BGPanelLayout.createSequentialGroup()
                .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BGPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(userNameHeaderLabel1)
                            .addComponent(gamesPlayedLabelHeader)
                            .addComponent(personalRecordLabelHeader)
                            .addComponent(moneyWonLabelHeader))
                        .addGap(44, 44, 44)
                        .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(moneyWonLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE)
                            .addComponent(personalRecordLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE)
                            .addComponent(gamesPlayedLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE)
                            .addComponent(userNameLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE)))
                    .addGroup(BGPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(HeaderLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 542, Short.MAX_VALUE))
                    .addGroup(BGPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(BackButton, javax.swing.GroupLayout.DEFAULT_SIZE, 542, Short.MAX_VALUE))
                    .addGroup(BGPanelLayout.createSequentialGroup()
                        .addGap(194, 194, 194)
                        .addComponent(LeftGobletIcon)))
                .addContainerGap())
        );
        BGPanelLayout.setVerticalGroup(
            BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(BGPanelLayout.createSequentialGroup()
                .addComponent(LeftGobletIcon)
                .addGap(17, 17, 17)
                .addComponent(HeaderLabel)
                .addGap(60, 60, 60)
                .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(BGPanelLayout.createSequentialGroup()
                        .addComponent(userNameHeaderLabel1)
                        .addGap(18, 18, 18)
                        .addComponent(gamesPlayedLabelHeader)
                        .addGap(17, 17, 17)
                        .addComponent(personalRecordLabelHeader)
                        .addGap(18, 18, 18)
                        .addComponent(moneyWonLabelHeader))
                    .addGroup(BGPanelLayout.createSequentialGroup()
                        .addComponent(userNameLabel)
                        .addGap(18, 18, 18)
                        .addComponent(gamesPlayedLabel)
                        .addGap(17, 17, 17)
                        .addComponent(personalRecordLabel)
                        .addGap(18, 18, 18)
                        .addComponent(moneyWonLabel)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)
                .addComponent(BackButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(BGPanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(BGPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>

    protected abstract void BackButtonActionPerformed(java.awt.event.ActionEvent evt);                                     

    protected javax.swing.JPanel BGPanel;
    protected javax.swing.JButton BackButton;
    protected javax.swing.JLabel HeaderLabel;
    protected javax.swing.JLabel LeftGobletIcon;
    protected javax.swing.JLabel gamesPlayedLabel;
    protected javax.swing.JLabel userNameLabel;
    protected javax.swing.JLabel gamesPlayedLabelHeader;
    protected javax.swing.JLabel moneyWonLabel;
    protected javax.swing.JLabel moneyWonLabelHeader;
    protected javax.swing.JLabel personalRecordLabel;
    protected javax.swing.JLabel personalRecordLabelHeader;
    protected javax.swing.JPanel personalRecordPanel1;
    protected javax.swing.JLabel userNameHeaderLabel1;
}
